//配置属性值
function peizhi(id)
{
	var shuxingzhi = $('#shuxingzhi_' + id).val();
	var url = apiUrl + '?action=peizhi&id=' + id + '&shuxingzhi=' + encodeURI(shuxingzhi);
	url = encodeURL(url);
	console.debug(url);
	$.getJSON(url,callback);
}

//配置教师表属性
function jiaoshi(id)
{
	var banji = $("#banji_" + id).val();
	var kemu = $("#kemu_" + id).val();
	var xingming = $("#xingming_" + id).val();
	var miaoshu = $("#miaoshu_" + id).val();
	var url = apiUrl + '?action=jiaoshi&id=' + id + '&banji=' + banji + '&kemu=' + kemu + '&xingming=' + xingming + '&miaoshu=' + miaoshu;
	url = encodeURL(url);
	console.debug(url);
	$.getJSON(url,callback);
}

//添加教师
function tianjia_jiaoshi()
{
	var banji = $("#tianjia_banji").val();
	var kemu = $("#tianjia_kemu").val();
	var xingming = $("#tianjia_xingming").val();
	var miaoshu = $("#tianjia_miaoshu").val();
	if(!banji || !kemu || !xingming)
	{
		alert('信息不完整!');
		return false;
	}
	var url = apiUrl + '?action=tianjia_jiaoshi&banji=' + banji + '&kemu=' + kemu + '&xingming=' + xingming + '&miaoshu=' + miaoshu;
	url = encodeURL(url);
	$.getJSON(url,callback);
}

//删除教师
function shanchu_jiaoshi(id)
{
	var url = apiUrl + '?action=shanchu_jiaoshi&id=' + id;
	console.debug(url);
	$.getJSON(url,callback);
}


function callback(data)
{
	console.debug('返回数据:');
}